package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 微信小程序用户信息  实体类
 *
 * @author Uchihashiamu
 */
@Data
@TableName("nova_wechater")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Wechater对象")
public class WechaterEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * user_id 雪花算法主键
	 */
    @Schema(description = "user_id 雪花算法主键")
    @TableField("user_id")
	private Long userId;
	/**
	 * openid
	 */
    @Schema(description = "openid")
    @TableField("open_id")
	private String openId;
	/**
	 * 微信唯一id
	 */
    @Schema(description = "微信唯一id")
    @TableField("union_id")
	private String unionId;
	/**
	 * 手机号
	 */
    @Schema(description = "手机号")
    @TableField("mobile")
	private String mobile;
	/**
	 * 租户
	 */
    @Schema(description = "租户")
    @TableField("tenant")
	private String tenant;

}
